﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="modify_edu.aspx.cs" Inherits="lcmyjobs.Web.users.add_edu" %>

<%@ Register Src="../Controls/TopUserJobsNavigation.ascx" TagName="TopUserJobsNavigation"
    TagPrefix="uc1" %>
<%@ Register Src="../Controls/UserManageLeft.ascx" TagName="UserManageLeft" TagPrefix="uc2" %>
<%@ Register Src="../Controls/Bottom1.ascx" TagName="Bottom1" TagPrefix="uc3" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>个人管理中心-我的简历</title>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/drag.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/major_arr.js" type="text/javascript"></script>
    <script src="../Scripts/major_func.js" type="text/javascript"></script>
    <link href="../Styles/css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/industry_func.js" type="text/javascript"></script>
    <script src="../Scripts/industry_arr.js" type="text/javascript"></script>
    <link href="../css/css1.css" rel="stylesheet" type="text/css" />
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
     <style type="text/css">
        .btn
        {
        	background-image:url('../qimg/djbaocun.gif');
        	border:0;
        	width:105px;
        	height:30px;
        }
        .times, .times1
        {
            width: 50px;
        }
        .unit
        {
            width: 120px;
        }
        .trade
        {
            width: 150px;
            }
        .job
        {
           width: 130px;
         }
        #selange,#selange1
        {
            width: 60px;
        }
        #languages{ line-height:24px;}
    </style>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(function () { $(".grgl_ul li a").eq(1).addClass("activ_n"); });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="lo_wrap">
        <uc1:TopUserJobsNavigation ID="TopUserJobsNavigation1" runat="server" />
        <div class="zgzt_img">
            <img src="../qimg/zgzt_img.jpg" alt="找工作？就来我猎头网！" width="950" height="70" />
        </div>
        <div class="syd_dhk">
            欢迎您：<asp:Label ID="lblName" runat="server"></asp:Label>，来到您的个人管理中心
        </div>
        <div class="ny_center" style="margin-top: 5px;">
            <uc2:UserManageLeft ID="UserManageLeft1" runat="server" />
            <div class="grgl_right">
                <div class="grgl_jbzl">
                    <p class="jbzl_zhuc_ls">
                        <a href="modify_basic.html">基本资料&bull;联系方式</a> | <a href="modify_edu.html"><span>教育背景&bull;工作经验</span></a>
                        | <a href="user_job.html">求职意向</a> |  <asp:HyperLink ID="HyperLink1" runat="server">简历预览</asp:HyperLink></p>
                    <div class="xinxi_zc">
					<div class="jbxx_lr_ls">教育背景</div>
					<table border="0" cellpadding="0" cellspacing="0" class="jbzl_tab_ls">
						<tr>
							<td class="red_td" width="10">*</td>
							<td width="290">最高学历： <asp:DropDownList ID="ddledu" runat="server" Width="90px">
                                    <asp:ListItem Value="2" Text="初中" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="高中"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="中专/中技"></asp:ListItem>
                                    <asp:ListItem Value="5" Text="大专"></asp:ListItem>
                                    <asp:ListItem Value="6" Text="本科"></asp:ListItem>
                                    <asp:ListItem Value="7" Text="硕士"></asp:ListItem>
                                    <asp:ListItem Value="8" Text="博士"></asp:ListItem>
                                </asp:DropDownList></td>
							<td class="qys_td" width="400"></td>
						</tr>
                        <tr>
							<td class="red_td" width="10">*</td>
							<td width="290">学历类型： <asp:DropDownList ID="DDL_EDU_TYPE" runat="server" Width="90px">
                                    <asp:ListItem Value="2" Text="统招" Selected="True"></asp:ListItem>
                                    <asp:ListItem Value="3" Text="委培"></asp:ListItem>
                                    <asp:ListItem Value="4" Text="自费"></asp:ListItem>
                                    <asp:ListItem Value="5" Text="成人高考"></asp:ListItem>
                                    <asp:ListItem Value="6" Text="自学考试"></asp:ListItem>
                                    <asp:ListItem Value="7" Text="电大"></asp:ListItem>
                                    <asp:ListItem Value="8" Text="远程教育"></asp:ListItem>
                                    <asp:ListItem Value="9" Text="函授"></asp:ListItem>
                                    <asp:ListItem Value="10" Text="党校"></asp:ListItem>
                                    <asp:ListItem Value="11" Text="网络教育"></asp:ListItem>
                                    <asp:ListItem Value="12" Text="其他"></asp:ListItem>
                                </asp:DropDownList></td>
							<td class="qys_td" width="400"></td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td>毕业院校： <asp:TextBox ID="txtschool" runat="server" Width="178px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtschool"
                                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
							<td class="qys_td"></td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td>毕业时间：   <asp:TextBox ID="txteduyear" runat="server" Width="90px" onfocus="WdatePicker({dateFmt:'yyyy',readOnly:true})"></asp:TextBox>
                                &nbsp;年<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txteduyear"
                                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
							<td class="qys_td"></td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td>专业名称：  <asp:TextBox ID="txtmajor" runat="server" Width="178px"></asp:TextBox><span id="majormsg"
                                                style="color:#ff6600;"></span><br />
                                            <asp:HiddenField ID="hfmajor" runat="server" />
                                            <asp:HiddenField ID="hfmajor1" runat="server" />
                                            <asp:HiddenField ID="hfmajor2" runat="server" /></td>
							<td class="qys_td">可以选择二个，建议您先选择第一专业名称，再选择第二专业名称</td>
						</tr>
						<tr>
							<td class="red_td"></td>
							<td>  <asp:TextBox ID="txtmajorother" runat="server" onclick="majorother()" onfocus="majorother()"
                                                onblur="majorotherout()" style=" width:178px; margin-left:63px;">若无合适选项在此处填写</asp:TextBox></td>
							<td class="qys_td">初中/高中，选择“基础教育”</td>
						</tr>
						<tr>
							<td class="red_td">*</td>
							<td> 
                                <div id="languages">
                                    外　　语： 
                                    <select id="selange" name="selange" style="width:60px;">
                                        <option value="2" selected="true">英语</option>
                                        <option value="3">日语</option>
                                        <option value="4">法语</option>
                                        <option value="5">德语</option>
                                        <option value="6">阿拉伯语</option>
                                        <option value="7">西班牙语</option>
                                        <option value="8">俄语</option>
                                        <option value="9">韩语</option>
                                        <option value="10">葡萄牙语</option>
                                        <option value="11">意大利语</option>
                                        <option value="12">波斯语</option>
                                        <option value="13">土耳其语</option>
                                        <option value="14">希腊语</option>
                                        <option value="15">瑞典语</option>
                                        <option value="16">印地语</option>
                                        <option value="17">无</option>
                                    </select>&nbsp; 
								 水　　平： <select id="selevel" name="selevel" style="width:60px;">
                                        <option value="1">初级</option>
                                        <option value="2">熟练</option>
                                        <option value="3">精通</option>
                                    </select>
                                 </div>
                                <asp:HiddenField ID="hflanguage" runat="server" />
                                <asp:HiddenField ID="hflanguage1" runat="server" />
                                <asp:HiddenField ID="hflanguage2" runat="server" />
							</td>
							<td id="td_uplang" class="qys_td">  <a id="uplang" href="#" onclick="javascript:uplanguage();return false;" class="bgbtn" style=" float:left; ">增加</a></td>
						</tr>
                        <tr>
                            <td></td>
                            <td colspan="2" style="padding-left:80px; color:#777;">
                                您精通或熟练应用的第二外语,点击增加；没有学习外语，选择“其他”
                            </td>
                        </tr>
						<tr>
							<td class="red_td">*</td>
							<td>
                                <span style="vertical-align:middle;padding-bottom:40px;margin-right:4px;">技能证书：</span><asp:TextBox ID="txtcertificate" runat="server" Width="178px" 
                                    Height="50px" TextMode="MultiLine" ></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtcertificate"
                                    ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator></td>
							<td class="qys_td"><span style=" color:#ff6600;">温馨提示：</span>您获得的计算机证书、会计证书、职称证书、技能证书等，填写将增加您的求职砝码；没有，填写“无”</td>
						</tr>
					</table>
					<div class="jbxx_lr_ls">工作经验</div>
					<table border="0" cellpadding="0" cellspacing="0" class="jbzl_tab_ls">
						<tr style="display:none">
							<td class="red_td" width="10">*</td>
							<td width="286">您　　是：  <asp:RadioButton ID="rbtold" runat="server" GroupName="type" Text=" 往届生" onclick="chlist()" CssClass="noboder"  Checked="True" />
                                <asp:RadioButton ID="rbtnew" runat="server" Checked="false" GroupName="type" Text=" 应届生"
                                    onclick="chlist()" /></td>
							<td class="qys_td"  width="386">正确的人才类别，能使更多招聘单位准确搜索到您的简历</td>
						</tr>
                        
						<tr>
							<td class="red_td">*</td>
							<td colspan="2" align="left">工作经验：  
            <asp:TextBox ID="txtExp" runat="server" Width="39px">0</asp:TextBox>		    
	                            年<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtExp" Display="Dynamic" ErrorMessage="RequiredFieldValidator">不能为空</asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtExp" ErrorMessage="CompareValidator" Operator="DataTypeCheck" Type="Integer">只能是整数</asp:CompareValidator>
	                        </td>
							
						</tr>
                        
						<tr class="gz"  style="padding-left:0px;">

                            <td height="25" colspan="3" style="padding-left:0px;" >
                                <div style="width:100%;" id="insert_old_job">
                                    <h3  style="width:100%; text-align:center; height:35px; vertical-align:middle; line-height:35px; font-size:14px;">从事过的单位</h3>
                                </div>
                                <div style="width:100%; float:right;display:none" id="show_add_job" ><a href="javascript:void(0)" onclick="javascript:showaddjob(this)" class="bgbtn" style=" margin-top:8px; line-height:27px;float:right;margin-right:102px;">继续添加</a></div>
		                        <table id="myoldjob" class="style1" border="0" cellpadding="0" cellspacing="0">
       
                                    <tr class="job_adding">
                                        <td class="red_td" width="20px" align="left">*</td>

                                     
                                           
                                     
                                        <td  height="19" width="100%" align="left">
                                            <span class="words" >企业名称：</span>
                                            <input id="Text1" type="text" class="unit" style="width:178px;"/><span class="check_unit" style=" color:#ff6600;"></span>
                                        </td>
                   
                                    </tr>

                                    <!--
                                    <tr>
							            <td></td>
							            <td colspan="2" class="qys_td" style="padding-left:75px;"> 温馨提示：从事过的单位，您考虑隐私风险，不愿意公开，建议您将“公司名称”以★★代替；</td>
						            </tr>
                                    -->
                                    <tr class="job_adding">
                                         <td class="red_td" width="20px" align="left">*</td>
                                        
                                        <td  height="19" width="275px" align="left">
                                            <span class="words" >所属行业：</span>
                                            <input id="Text2" type="text" class="trade" style="width:178px;" onclick="IndustrySelect_2(this)"  /><span class="check_trade" style=" color:#ff6600;"></span>
                                        </td>
                                    </tr>
                                    <tr class="job_adding">
                                        <td class="red_td" width="20px" align="left">*</td>
                                        <td  height="19" width="275px" align="left">
                                            <span class="words" >从事岗位：</span>
                                            <input id="Text3" type="text" class="job" style="width:178px;"  value="可写两个,用逗号分开" onclick="myjobtt(this)" onfocus="myjobtt(this)" onblur="myjobout(this)" /><span class="check_job" style=" color:#ff6600;"></span>
                                        </td>
                                    </tr>
                                    <tr class="job_adding">
                                        <td class="red_td" width="20px" align="left">*</td>
                                       
                                        <td  height="19" width="275px" align="left">
                                            <span class="words" >从事时间：</span>
                                            <input id="Text4" type="text" class="times"   style="width:75px;" onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" />&nbsp;到&nbsp;<input id="Text5" type="text" class="times1 " style="width:75px;"  onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" /><span class="check_time" style=" color:#ff6600;"></span>
                                        </td>
            
                                    </tr>
                                    <tr>
                                        <td  height="19" width="100%" colspan="3" align="left">
                                                <a href="javascript:void(0)" onclick="javascript:add()" class="bgbtn" style="margin-left:185px; ">上传</a> <!--<a href="#" onclick="javascript:del(this)" class="bgbtn">删除</a>-->
                                        </td>
                                    </tr>

                                </table>
        
                                <asp:HiddenField ID="hfoldjob" runat="server" />
	                            <asp:HiddenField ID="hfoldjob1" runat="server" />
	                            <asp:HiddenField ID="hfoldjob2" runat="server" />
	                        </td>

						</tr>
                        
						
						<tr class="gz">
							<td class="red_td">*</td>
							<td colspan="2">您从事过的岗位职责 </td>
							
						</tr>
                        <tr class="gz">
                            <td class="red_td"></td>
                            <td class="qys_td" colspan="2" style="padding-left:10px;">
								 <asp:TextBox ID="txtoldjobduty" runat="server" Width="600px" Height="100px" TextMode="MultiLine"></asp:TextBox>
                                <span id="jobdutymsg" style="color:#ff6600;"></span>
							</td>
                        </tr>
						<tr class="gz">
							<td class="red_td"></td>
							<td colspan="2">您的工作业绩&bull;获得荣誉 </td>
							
						</tr>
                        <tr class="gz">
                            <td class="red_td"></td>
                            <td class="qys_td" colspan="2" style="padding-left:10px;">
								 <asp:TextBox ID="txthonour" runat="server" Width="600px" Height="100px" TextMode="MultiLine"></asp:TextBox><br/><p style=" line-height:30px;"><span style=" color:#ff6600;">温馨提示：</span>您期望年薪5万以上，“工作业绩&bull;获得荣誉”也是必填项；否则不能通过网站审核</p>
							</td>
                        </tr>
						<tr class="zx">
							<td class="red_td" >*</td>
							<td colspan="2">自我评价/特长爱好 </td>
							
						</tr>
                        <tr class="zx">
                            <td class="red_td"></td>
                            <td class="qys_td" colspan="2" style="padding-left:10px;">
								<asp:TextBox ID="txtmyvalution" runat="server" Width="600px" Height="100px" TextMode="MultiLine"></asp:TextBox>
                                    <span id="myvalutionmsg" style="color:#ff6600;"></span>
							</td>
                        </tr>
					</table>
					<div class="xiayibu">
						<a href="geren_zhuce1.html">  <asp:Button ID="btnedu" runat="server" CssClass="btn" OnClick="btnedu_Click"
                        OnClientClick="return save()" /></a>
					</div>
					</div>

                </div>
            </div>
        </div>
        <uc3:Bottom1 ID="Bottom11" runat="server" />
    </div>
     <div style="display: none" id="maskLayer">
        <iframe style="filter: alpha(opacity=50)" id="maskLayer_iframe" src="about:blank"
            frameborder="0" scrolling="no"></iframe>
        <div style="filter: alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5" id="alphadiv">
        </div>
        <div id="drag">
            <h3 id="drag_h">
            </h3>
            <div id="drag_con">
            </div>
            <!-- drag_con end -->
        </div>
    </div>
    <!-- maskLayer end -->
    <div>
    </div>
    <!-- alpha div end -->
    <div style="display: none" id="sublist">
    </div>
      <script language="javascript" type="text/javascript">
          var i = 2;
          $().ready(function () {
              var majors, languages, jobs;
              $(".left2 ul li").eq(1).addClass("cura");
              $("#txtmajor").bind("click", function () { majorSelect(2); });
              majors = $('#<%= hfmajor2.ClientID%>').val();
              if (majors != "") {
                  //             if (majors.substring(0, 1) == "@") {
                  //                 $('#<%= txtmajor.ClientID%>').val(majors.substring(1));
                  //                 $("#Checkbox1").attr("checked", "true");
                  //                 $('#<%= hfmajor.ClientID%>').val("other");
                  //                 $("#txtmajor").unbind();
                  //             }
                  //             else {
                  $("#txtmajor").val(majors);
                  m_flag_arr = getmyids(majors);
                  //             }
              }
              if ($('#<%= hflanguage2.ClientID%>').val() != "") {
                  languages = $('#<%= hflanguage2.ClientID%>').val().split(",");
                  $("#selange").val(languages[0]);
                  $("#selevel").val(languages[1]);
                  if (languages.length > 2) {
                      uplanguage();
                      $("#selange1").val(languages[2]);
                      $("#selevel1").val(languages[3]);
                  }
              }
              if ($('#<%= hfoldjob2.ClientID%>').val() != "") {
                  jobs = $('#<%= hfoldjob2.ClientID%>').val().split("|");
                  $("#Text1").val(jobs[0]);
                  $("#Text2").val(jobs[1]);
                  $("#Text3").val(jobs[2]);
                  $("#Text4").val(jobs[3].substring(0, jobs[3].indexOf('到')));
                  $("#Text5").val(jobs[3].substring(jobs[3].indexOf('到') + 1));
                  add();
                  if (jobs.length > 4) {    // 1
                      
                      $("#Text1").val(jobs[4]);
                      $("#Text2").val(jobs[5]);
                      $("#Text3").val(jobs[6]);
                      $("#Text4").val(jobs[7].substring(0, jobs[7].indexOf('到')));
                      $("#Text5").val(jobs[7].substring(jobs[7].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 8) {    // 2
                      
                      $("#Text1").val(jobs[8]);
                      $("#Text2").val(jobs[9]);
                      $("#Text3").val(jobs[10]);
                      $("#Text4").val(jobs[11].substring(0, jobs[11].indexOf('到')));
                      $("#Text5").val(jobs[11].substring(jobs[11].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 12) {    // 3
                      
                      $("#Text1").val(jobs[12]);
                      $("#Text2").val(jobs[13]);
                      $("#Text3").val(jobs[14]);
                      $("#Text4").val(jobs[15].substring(0, jobs[15].indexOf('到')));
                      $("#Text5").val(jobs[15].substring(jobs[15].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 16) {    // 4
                      
                      $("#Text1").val(jobs[16]);
                      $("#Text2").val(jobs[17]);
                      $("#Text3").val(jobs[18]);
                      $("#Text4").val(jobs[19].substring(0, jobs[19].indexOf('到')));
                      $("#Text5").val(jobs[19].substring(jobs[19].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 20) {    // 5
                      
                      $("#Text1").val(jobs[20]);
                      $("#Text2").val(jobs[21]);
                      $("#Text3").val(jobs[22]);
                      $("#Text4").val(jobs[23].substring(0, jobs[23].indexOf('到')));
                      $("#Text5").val(jobs[23].substring(jobs[23].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 24) {    // 6
                      
                      $("#Text1").val(jobs[24]);
                      $("#Text2").val(jobs[25]);
                      $("#Text3").val(jobs[26]);
                      $("#Text4").val(jobs[27].substring(0, jobs[27].indexOf('到')));
                      $("#Text5").val(jobs[27].substring(jobs[27].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 28) {    // 7
                      
                      $("#Text1").val(jobs[28]);
                      $("#Text2").val(jobs[29]);
                      $("#Text3").val(jobs[30]);
                      $("#Text4").val(jobs[31].substring(0, jobs[31].indexOf('到')));
                      $("#Text5").val(jobs[31].substring(jobs[31].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 32) {    // 8
                      
                      $("#Text1").val(jobs[32]);
                      $("#Text2").val(jobs[33]);
                      $("#Text3").val(jobs[34]);
                      $("#Text4").val(jobs[35].substring(0, jobs[35].indexOf('到')));
                      $("#Text5").val(jobs[35].substring(jobs[35].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 36) {    // 9
                      
                      $("#Text1").val(jobs[36]);
                      $("#Text2").val(jobs[37]);
                      $("#Text3").val(jobs[38]);
                      $("#Text4").val(jobs[39].substring(0, jobs[39].indexOf('到')));
                      $("#Text5").val(jobs[39].substring(jobs[39].indexOf('到') + 1));
                      add();
                  }
                  if (jobs.length > 40) {    // 10
                      
                      $("#Text1").val(jobs[40]);
                      $("#Text2").val(jobs[41]);
                      $("#Text3").val(jobs[42]);
                      $("#Text4").val(jobs[43].substring(0, jobs[43].indexOf('到')));
                      $("#Text5").val(jobs[43].substring(jobs[43].indexOf('到') + 1));
                      add();
                  }

              }
              if ($("#rbtnew").attr("checked")) {
                  $(".gz").hide();
                  $(".zx").show();

              }
              else {
                  $(".gz").show();
                  $(".zx").hide();

              }



          });
          function in_array(needle, haystack) {
              if (typeof needle == 'string' || typeof needle == 'number') {
                  for (var i in haystack) {
                      if (haystack[i] == needle) {
                          return true;
                      }
                  }
              }
              return false;
          }
          function uplanguage() {
              var t = $("#uplang").html();
              if (t == "增加") {
                  $("#languages").append('<div id="addlang"><select id="selange1" name="selange1" style="margin:10px 0  0px 65px; width:52px;">' +
            '<option value="2" selected="true">英语</option>' +
           ' <option value="3">日语</option>' +
            '<option value="4">法语</option>' +
           ' <option value="5">德语</option>' +
            '<option value="6">阿拉伯语</option>' +
           ' <option value="7">西班牙语</option>' +
           ' <option value="8">俄语</option>' +
           ' <option value="9">韩语</option>' +
           ' <option value="10">葡萄牙语</option>' +
           ' <option value="11">意大利语</option>' +
           ' <option value="12">波斯语</option>' +
           ' <option value="13">土耳其语</option>' +
           ' <option value="14">希腊语</option>' +
           ' <option value="15">瑞典语</option>' +
           ' <option value="16">印地语</option>' +
            '<option value="17">无</option>' +
        '</select>' +
       '&nbsp;&nbsp;水　　平： <select id="selevel1" name="selevel1" style=" width:52px;">' +
           ' <option value="1">初级</option>' +
            ' <option value="2">熟练</option>' +
              '<option value="3">精通</option>' +
       ' </select></div>');
                  $("#uplang").html("删除");
                  $("#td_uplang").css("padding-bottom", "9px");
                  $("#td_uplang").css("vertical-align", "bottom");
              }
              else {
                  $("#addlang").remove();
                  //$("#selevel1").remove();
                  $("#uplang").html("增加");
                  $("#td_uplang").css("padding-bottom", "8px");
              }

          }
          function chlist() {
              if ($("#rbtnew").attr("checked")) {
                  $(".gz").hide();
                  $(".zx").show();

              }
              else {
                  $(".gz").show();
                  $(".zx").hide();

              }
          }
          function majorother() {
              if ($("#txtmajorother").val() == "若无合适选项在此处填写") $("#txtmajorother").val("");


          }
          function majorotherout() {

              if ($("#txtmajorother").val() == "") $("#txtmajorother").val("若无合适选项在此处填写");

          }
          function myjobtt(myput) {

              if ($(myput).val() == "可写两个,用逗号分开") $(myput).val("");

          }
          function myjobout(myput) {

              if ($(myput).val() == "") $(myput).val("可写两个,用逗号分开");

          }
          function save() {
              if ($("#txtmajor").val() == "" && $("#txtmajorother").val() == "若无合适选项在此处填写") {
                  $("#majormsg").html("不能为空");
                  return false;
              }
              else {
                  $("#majormsg").html("");
              }
              if ($("#rbtnew").attr("checked")) {
                  if ($("#txtmyvalution").val() == "") {
                      $("#myvalutionmsg").html("不能为空");
                      return false;
                  }
                  else {
                      $("#myvalutionmsg").html("");
                  }

              }
              else {
                  if ($("#txtoldjobduty").val() == "") {
                      $("#jobdutymsg").html("不能为空");
                      return false;
                  }
                  else {
                      $("#jobdutymsg").html("");
                  }
                  var emp = "";
                  $("#myoldjob tr:gt(0)").each(function () { if ($(this).find(".unit").val() == "") emp = "e"; if ($(this).find(".trade").val() == "") emp = "e"; if ($(this).find(".job").val() == "") emp = "e"; if ($(this).find(".times").val() == "") emp = "e"; if ($(this).find(".times1").val() == "") emp = "e"; });
                  //if (emp != "") {
                  //    if ($("#hfoldjob1").val() == "") {
                  //        $("#oldjobmsg").html("不能有空值");
                  //        return false;
                  //    }
                  //}
                  //else {
                  //    $("#oldjobmsg").html("");
                  //}

              }
              var mylange, myoldjob = "";
              if ($("#Checkbox1").attr("checked")) {
                  $('#<%= hfmajor.ClientID%>').val("other");
              }
              else {
                  $('#<%= hfmajor.ClientID%>').val("");
              }
              mylange = $("#selange").val() + "," + $("#selevel").val();
              if ($("#selange1").length > 0) {
                  mylange += "|" + $("#selange1").val() + "," + $("#selevel1").val();
              }
              $('#<%= hflanguage.ClientID%>').val(mylange);
              //$("#myoldjob tr:gt(0)").each(function () { myoldjob += $(this).find(".unit").val().replace("|", "｜") + "|" + $(this).find(".trade").val().replace("|", "｜") + "|" + $(this).find(".job").val().replace("|", "｜") + "|" + $(this).find(".times").val().replace("|", "｜") + "到" + $(this).find(".times1").val().replace("|", "｜") + "|"; });

              $(".oldjob").each(function () { myoldjob += $(this).find(".unit").val().replace("|", "｜") + "|" + $(this).find(".trade").val().replace("|", "｜") + "|" + $(this).find(".job").val().replace("|", "｜") + "|" + $(this).find(".times").val().replace("|", "｜") + "到" + $(this).find(".times1").val().replace("|", "｜") + "|"; });
              myoldjob += $("#Text1").val().replace("|", "｜") + "|" + $("#Text2").val().replace("|", "｜") + "|" + $("#Text3").val().replace("|", "｜") + "|" + $("#Text4").val().replace("|", "｜") + "到" + $("#Text5").val().replace("|", "｜") + "|";
              $('#<%= hfoldjob.ClientID%>').val(myoldjob);

          }
          function del(delbtn) {
              $(delbtn).parent("div").parent("div").remove();
          };
          function add() {

              if ($("div.oldjob").length >= 9) {
                  return;
              }
              // 原工作履历是否填写完整检验
              if ($("#Text1").val() == "") {
                  $(".check_unit").html("不能为空");
                  return false;
              }
              else {
                  $(".check_unit").html("");
              }

              if ($("#Text2").val() == "") {
                  $(".check_trade").html("不能为空");
                  return false;
              }
              else {
                  $(".check_trade").html("");
              }

              if ($("#Text3").val() == "") {
                  $(".check_job").html("不能为空");
                  return false;
              }
              else if ($("#Text3").val() == "可写两个,用逗号分开") {
                  $(".check_job").html("不能为空");
                  return false;
              }
              else {
                  $(".check_job").html("");
              }

              if ($("#Text4").val() == "" || $("#Text5").val() == "") {
                  $(".check_time").html("不能为空");
                  return false;
              }
              else {
                  $(".check_time").html("");
              }


              var oldunit = $("#Text1").val();
              var oldtrade = $("#Text2").val();
              var oldjob = $("#Text3").val();
              var oldtimestart = $("#Text4").val();
              var oldtimeend = $("#Text5").val();

              $("#Text1").val("");
              $("#Text2").val("");
              $("#Text3").val("");
              $("#Text4").val("");
              $("#Text5").val("");



              // var myoldjob = "";


              $(".oldjobnow").removeClass("oldjobnow");

              var peried = oldtimestart + "--" + oldtimeend;
              //$("#insert_old_job").append('<div class="old_job_list" ><div class="old_job_list_item">' + peried + '</div><div class="old_job_list_item">' + oldunit + ' </div><div class="old_job_list_item">' + oldtrade + ' </div><div class="old_job_list_item">' + oldjob + ' </div><div class="old_job_list_item" style="width:80px;"><a href="#" onclick="javascript:del(this)" class="bgbtn" style=" margin-top:8px; line-height:20px;">删除</a></div></div> ');
              $("#insert_old_job").append('<div class="old_job_list" ><div class="old_job_list_item">' + peried + '</div><div class="old_job_list_item">' + oldunit + ' </div><div class="old_job_list_item">' + oldjob + ' </div><div class="old_job_list_item" style="width:80px;"><a href="javascript:void(0)" onclick="javascript:modify(this)" class="bgbtn" style="line-height:27px;">修改</a></div><div class="old_job_list_item" style="width:80px;"><a href="javascript:void(0)" onclick="javascript:del(this)" class="bgbtn" style="line-height:27px;">删除</a></div></div> ');

              //$("#myoldjob").append('<div class="oldjob oldjobnow" style="display:none;"><input id="Text1' + i + '" type="text" class="unit" /><input id="Text2' + i + '" type="text" class="trade"  /><input id="Text3' + i + '" type="text" class="job" /><input id="Text4' + i + '" type="text" class="times"  /><input id="Text5' + i + '" type="text" class="times1" /></div>');
              $("#insert_old_job .old_job_list:last").append('<div class="oldjob oldjobnow" style="display:none;"><input id="Text1' + i + '" type="text" class="unit" /><input id="Text2' + i + '" type="text" class="trade"  /><input id="Text3' + i + '" type="text" class="job" /><input id="Text4' + i + '" type="text" class="times"  /><input id="Text5' + i + '" type="text" class="times1" /></div>');
              //<tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >企业名称：</span></td><td  height="25" width="250px" align="left"><input id="Text1' + i + '" type="text" class="unit inputText3" /></td><td  height="25" width="*"  class="listmsg2"><span class="style2" style=" padding-left:0px; font-size:12px; ">温馨提示：<span style="color:#565d63;"  > 从事过的单位，您考虑隐私风险，不愿意公开，建议您将“公司名称”以★★代替；</span></span></td></tr><tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >所属行业：</span></td><td  height="25" width="275px" align="left"><input id="Text2' + i + '" type="text" class="trade inputText3" onclick="IndustrySelect_2(this)"  /></td> </tr><tr class="job_adding"> <td height="25" class="txtalign" ><span class="style2">*</span><span class="words" >从事岗位：</span></td><td  height="25" width="275px" align="left"><input id="Text3' + i + '" type="text" class="job inputText3" value="可写两个,用逗号分开" onclick="myjobtt(this)" onfocus="myjobtt(this)" onblur="myjobout(this)" /></td></td></tr><tr class="job_adding"><td height="25" class="txtalign"><span class="style2">*</span><span class="words" >从事时间：</span> </td><td  height="25" width="275px" align="left"> <input id="Text4' + i + '" type="text" class="times  inputText3" style="width:74px;" onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" />&nbsp;到&nbsp;<input id="Text5" type="text" class="times1 inputText2" style="width:74px;"  onfocus="WdatePicker({dateFmt:'yyyy年MM月',readOnly:true})" /></td> </tr>')
              

              $(".oldjobnow .unit").val(oldunit);
              $(".oldjobnow .trade").val(oldtrade);
              $(".oldjobnow .job").val(oldjob);
              $(".oldjobnow .times").val(oldtimestart);
              $(".oldjobnow .times1").val(oldtimeend);

              i++;

              $("#myoldjob").hide();
              $("#show_add_job").show();
          }
          function changemajor(rad) {
              if ($(rad).attr("checked")) {
                  $("#txtmajor").unbind().val("");
              }
              else {
                  $("#txtmajor").bind("click", function () { majorSelect(2); });
                  $('#<%= hfmajor.ClientID%>').val("");
              }
          }
          function showaddjob() {
              $("#myoldjob").show();
              $("#show_add_job").hide();
          }

          function modify(mdfbtn) {
              $("#myoldjob").show();
              $("#show_add_job").hide();

              $("#Text1").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".unit").val().replace("|", "｜"));
              $("#Text2").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".trade").val().replace("|", "｜"));
              $("#Text3").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".job").val().replace("|", "｜"));
              $("#Text4").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".times").val().replace("|", "｜"));
              $("#Text5").val($(mdfbtn).parent("div").parent("div").find(".oldjob").find(".times1").val().replace("|", "｜"));
              $(mdfbtn).parent("div").parent("div").remove();
          }
    </script>
    </form>
</body>
</html>
